﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using WFNetLib;

namespace 生命体征测试仪
{
    public partial class formLevel1 : formBase
    {
        public formLevel1(Form f)
        {
            InitializeComponent();
            mainForm = f;
        }
        Form mainForm;
        private void skinButton1_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show("确定要退出当前系统软件么?", "警告", MessageBoxButtons.YesNo) == DialogResult.No)
                return;
            this.Close();
            mainForm.Close();
        }

        private void skinButton3_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show("确定要重启计算机么?", "警告", MessageBoxButtons.YesNo) == DialogResult.No)
                return;
            ControlComputer_Win7.Restart();
        }

        private void skinButton4_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show("确定要关闭计算机么?", "警告", MessageBoxButtons.YesNo) == DialogResult.No)
                return;
            ControlComputer_Win7.ShutDown();
        }

        private void skinButton2_Click(object sender, EventArgs e)
        {
            formTimerSet f = new formTimerSet();
            f.ShowDialog();
        }

        private void skinButton7_Click(object sender, EventArgs e)
        {
            formDeviceSet f = new formDeviceSet();
            f.ShowDialog();
        }

        private void skinButton5_Click(object sender, EventArgs e)
        {
            formGetID f = new formGetID();
            f.ShowDialog();
            if (f.bIDOk)
            {
                formOffline ff = new formOffline();
                ff.ShowDialog();
            }
        }

        private void skinButton8_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void skinButton6_Click(object sender, EventArgs e)
        {
            formNurse f = new formNurse();
            f.ShowDialog();
        }
    }
}
